<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>代理商管理</title>
		<link href="${ctx}/style/style.css" rel="stylesheet" type="text/css" />
		<link href="${ctx}/style/phoneRecharge.css" rel="stylesheet"
			type="text/css" />
		<link type="text/css" rel="stylesheet"
			href="${ctx}/style/formValidataor/formValidator.css" />
		<script language="JavaScript" src="${ctx}/scripts/jquery.js"></script>
		<script type="text/javascript"
			src="${ctx}/scripts/formValidataor/formValidator.js"></script>
		<script type="text/javascript"
			src="${ctx}/scripts/formValidataor/formValidatorRegex.js"></script>
		<script type="text/javascript"
			src="${ctx}/scripts/lhgdialog/lhgdialog.js"></script>	
		<%
			String language = "0";
			if( request.getSession().getAttribute("language") != null){
				if(request.getSession().getAttribute("language").toString().equals("1")){
					language = "1";
				}
			}
		 %>	
		 <script type="text/javascript">
		 	var language = <%=language %>;
		 	var js;
		 	if(language == '0'){
		 		js = "${ctx}/scripts/business/agentaccountinfo_add_CH.js";
		 	}else if(language == '1'){
		 		js = "${ctx}/scripts/business/agentaccountinfo_add_UYGUR.js";
		 	}
		 	var oHead = document.getElementsByTagName('HEAD').item(0); 
		    var oScript= document.createElement("script"); 
		    oScript.type = "text/javascript"; 
		    oScript.src = js; 
		    oHead.appendChild( oScript); 
		    
		 </script>
	<style type="text/css">
		.main {
			background-color: #1c77ac;
			background-image: url(${ctx}/images/light.png);
			background-repeat: no-repeat;
			background-position: center top;
			overflow: hidden;
		}
	</style>
	</head>
	<body class="main">
		<div id="mainBody">
			<div id="cloud1" class="cloud"></div>
			<div id="cloud2" class="cloud"></div>
		</div>
		<div class="logintop">
			<span id=welcom_lab></span>
			<ul>
				<li>
					<a href="${ctx}/index.jsp" id="back_lab">返回</a>
				</li>
			</ul>
		</div>
		<div class="loginbody" style="height: 84%;overflow-y:auto;" id="loginbody">
			<div style="text-align: center; vertical-align: top;">
				<form id="myform" name="myform"  onsubmit="add_submit()"
					action="Agentaccountinfo_add.action" enctype="multipart/form-data" method="post" >
					<table  style="width: 700px; height: 10%; background-color: white; display: block;">
						<tr>
							<td colspan="5">
								<div class="formbody" style="margin-top: 00px;">
									<div class="formtitle">
										<span><label id="name_lab"></label></span>
									</div>
								</div>	
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="username_lab"></label>
							</td>
							<td width="300">
								<s:textfield name="agent.username" id="username"cssClass="input" />
								<input type="button" id="verificationBtn" value="获取手机验证码" onclick="phoneNumberVerification()"
								   class="scbtn" style="height: 20px;width: 120px;font-size: 12px;" />
							</td>
							<td  >
								<div id="usernameTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="code_lab"></label>
							</td>
							<td width="250">
								<input  id="code" name="code" class="input" />
							</td>
							<td  >
								<div id="codeTip"></div>
								&nbsp;
							</td>
						</tr>
	
						<tr height="20">
							<td  width="150" align="right"">
								<label id="password_lab"></label>
							</td>
							<td>
								<s:password name="agent.password" id="password"
									cssClass="input" />
							</td>
							<td >
								<div id="passwordTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="confirmPwd_lab"></label>
							</td>
							<td>
								<input type="password" id="confirmPwd" class="input" />
							</td>
							<td >
								<div id="confirmPwdTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="boundname_lab"></label>
							</td>
							<td>
								<s:textfield name="agent.boundname"
									id="boundname" readonly="true" cssClass="input" />
								<!--所属地区号-->		
								<s:hidden name="agent.field5" id="field5"/> 
							</td>
							<td >
								<div id="boundnameTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="boundcode_lab"></label>
							</td>
							<td>
								<select id="boundcode" name="agent.boundcode" class="input" onblur="checkUpAgent(this.value)"/>	
							</td>
							<td >
								<div id="boundcodeTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="truename_lab"></label>
							</td>
							<td>
								<s:textfield name="agent.truename" id="truename"
									cssClass="input" />
							</td>
							<td >
								<div id="truenameTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="mobilephone_lab"></label>
							</td>
							<td>
								<s:textfield name="agent.mobilephone" id="mobilephone"
									cssClass="input" />
							</td>
							<td >
								<div id="mobilephoneTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="ident_lab"></label>
							</td>
							<td>
								<s:textfield name="agent.ident" id="ident"
									cssClass="input" />
							</td>
							<td >
								<div id="identTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="ident_pic_lab"></label>
							</td>
							<td>
								<s:file name="attachment" id="ident_pic" cssClass="input" cssStyle="width:215px" />
							</td>
							<td >
								<div id="ident_picTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="20">
							<td  width="150" align="right"">
								<label id="addr_lab"></label>
							</td>
							<td>
								<s:textfield name="agent.addr" id="addr"
									cssClass="input" />
							</td>
							<td >
								<div id="addrTip"></div>
								&nbsp;
							</td>
						</tr>
						<tr height="30">
							<td   colspan="3" align="center">
								<span id="msg" style="color: red;"><s:property value="msg"/></span>
								<input id="btn" type="submit" class="scbtn" value="提交" />
							</td>
						</tr>
					</table>
				</form>	
				<table class="imgtable" style="width: 700px; background-color: white;">
				    <thead>
					    <tr>
						    <th width="100px;">注意事项</th>
					    </tr>
				    </thead>
				    <tr height="25">
				    	<td>1、请认真填写注册信息：注册信息将作为您操作的凭证，如果错误，将会导致无法正常使用</td>
				    </tr>
				    <tr height="25">
				    	<td>2、用户名请使用个人手机号码</td>
				    </tr>
				     <tr height="25">
				    	<td>3、身份证请扫描正反面以图片的形式进行上传</td>
				    </tr>
				   </table> 
  			   <tbody>
			</div>
		</div>
		<div class="loginbm">
			版权所有 2013 新疆亿事通
		</div>
		<div id="tip"  style="display: none;text-align: center;">
			<table cellpadding="0" cellspacing="0" border="0" >
    			<tr>
    				<td padding-left: 20px"><img src="${ctx}/scripts/lhgdialog/skins/icons/confirm.gif"></td>
    				<td style="width: 300px;padding-left: 10px" id="tip_text"></td>
    			</tr>
	    	</table>	
		</div>
		
		<div id="loading" style="position:absolute; display:none; left:-1px; top:1px; width:100%; height:100%; background-color:#FFFFFF; 
			filter:alpha(opacity=50);-moz-opacity:0.5; -khtml-opacity: 0.5;opacity: 0.5; z-index:1000;"> 
			<div  style="position:absolute;left:45%;top:35%;width:100px;height:100px;background-color:#FFFFFF; z-index:9001;" >
				<img alt="" id="wait1" src="${ctx}/images/loading.gif" >
			</div>
		</div>
	</body>
</html>